// 获取导航列表
export const getChannelList = (axios,params) => {
	return axios({
		url: '/common/channel/list',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}
// 获取微信分享
export const getWxShares = (axios,data) => {
	return axios({
		url: '/common/wx/shares',
		method: 'post',
		data:data,
		headers: {
		  isToken: false,
		},
	});
}
// 获取产品分类
export const getProductCategory = (axios) => {
	return axios({
		url: `/common/productCategory/treeselect`,
		method: 'get',
		params: {},
	});
}

// 获取页面详情
export const getPageDetail = (axios,params) => {
	return axios({
		url: '/common/channel/page',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 获取首页模块列表
export const getHomeList = (axios, params) => {
	const data=[
		{
			"name": "Home-banner",
			"keyName": "Home-banner"
		},
		{
			"name": "Home-quick-enter",
			"keyName": "Home-quick-enter"
		},
		{
			"name": "Home-intro",
			"keyName": "Home-intro"
		},
		{
			"name": "Home-activity",
			"keyName": "Home-activity"
		},
		{
			"name": "Home-exhibitor-recommend",
			"keyName": "Home-exhibitor-recommend"
		},
		{
			"name": "Home-hot-product",
			"keyName": "Home-hot-product"
		},
		{
			"name": "Home-demand",
			"keyName": "Home-demand"
		},
		{
			"name": "Home-news",
			"keyName": "Home-news"
		},
		{
			"name": "Home-partner",
			"keyName": "Home-partner"
		}
	]
	return new Promise((resolve, reject) => {
		resolve({
			code: 200,
			data:data
		})
	})
	return axios({
		url: '/common/modules/list',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}


// 获取展会信息
export const getExhibitionInfo = (axios, params) => {
	return axios({
		url: '/common/exhibition/getExhibitionIntro',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 全局搜索
export const getListSearch = (axios,params) => {
	return axios({
		url: '/common/search/getList',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 联系人列表
export const getListContact = (axios,params) => {
	return axios({
		url: '/common/contacts/list',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 页面底部二维码
export const getListQrCode = (axios, params) => {
	return axios({
		url: '/common/footQrcode/all',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 获取当前届展会
export const getCurrentExhibition= (axios, params) => {
	return axios({
		url: '/common/exhibition/current',
		method: 'get',
		params:params,
		headers: {
		  isToken: false,
		},
	});
}

// 获取全局配置
export const getConfig= (axios,configKey) => {
	return axios({
		url: `/common/config/${configKey}`,
		method: 'get',
		headers: {
		  isToken: false,
		},
	});
}
// 获取全局配置-接受多个参数
export const getConfigs= (axios,configKeys) => {
	return axios({
		url: `/common/configs`,
		params:{configKeys},
		method: 'get',
		headers: {
		  isToken: false,
		},
	});
}

// 获取国家列表
export const getCountryList= (axios,params) => {
	return axios({
		url: `/common/countryList`,
		params:params,
		method: 'get',
		headers: {
		  isToken: false,
		},
	});
}


// 获取各个分类下产品数量
export const getProductCategoryCount= (axios,params) => {
	return axios({
		url: `/common/product/count`,
		params:params,
		method: 'get',
		headers: {
		  isToken: false,
		},
	});
}

//  询盘
export const inquiry = (axios, data) => {
	return axios({
		url: `/inquiry`,
		method: 'post',
		data:data,
	});
}

//  小样
export const sample = (axios, data) => {
	return axios({
		url: `/sample`,
		method: 'post',
		data:data,
	});
}